package zjh

import "wanyu/server/logdef/game"

//CardData ..玩家操作数据
//玩家看牌
//OptType   gamezjh.Event_LOOK_CARD-----11
//OptData	CardData interface{}
type CardData struct {
	Card     []game.Poker `json:"card" bson:"card"`
	CardType int32        `json:"cardType" bson:"cardType"`
}

//玩家弃牌
//OptType   gamezjh.Event_GIVE_UP-----13
//OptData	nil

//玩家跟注
//OptType   gamezjh.Event_FOLLOW-----15
//OptData	money int64

//玩家加注_
//OptType   gamezjh.Event_ADD-----16
//OptData	money int64

//玩家全押
//OptType   gamezjh.Event_ALL_IN-----18
//OptData	money int64

//玩家比牌
//OptType   gamezjh.Event_COMPARE-----14
//OptData	CompareData interface{}

//游戏结束
//OptType   gamezjh.Event_SETTLE-----7143425
//OptData	nil

//CompareData ..比牌数据
type CompareData struct {
	//目标ChairID
	TargetChairID int32 `json:"targetChairID" bson:"targetChairID"`
	//发起者的输赢 赢为true 否则为false
	IsWinLose bool `json:"isWinLose" bson:"isWinLose"`
	//比牌消耗的金币
	CompareMoney int64 `json:"compareMoney" bson:"compareMoney"`
	//比牌失败者的牌
	Data CardData `json:"Data" bson:"Data"`
}
